package cate.game.activity.diamondbowl;

import cate.common.table.d.GDFunc;
import cate.game.GameBody;
import cate.game.activity.base.core.Activity;
import cate.game.activity.base.core.ActivityHandler;
import cate.game.activity.base.core.EmptyActivityGlobalData;

@Activity(relatedFuncIds = {
        GDFunc.ACT_DIAMOND_BOWL
})
public class DiamondBowlActivityHandler extends ActivityHandler<EmptyActivityGlobalData, DiamondBowlActivity> {
    @Override
    public String getName() {
        return "聚宝盆";
    }

    @Override
    public EmptyActivityGlobalData buildGlobal() {
        return EmptyActivityGlobalData.BUILD();
    }

    @Override
    public DiamondBowlActivity buildSingle() {
        return new DiamondBowlActivity();
    }

    @Override
    public void onActOpen() {

    }

    @Override
    public void onActClose() {

    }

    @Override
    public void initialize(GameBody game) throws Exception {
        super.initialize(game);
        DiamondBowlConstants.loadFromTable(game.table.common);
    }
}
